package com.ps.bicyclecharging.service;

import com.ps.domain.Bicycle;
import com.ps.domain.Breakdown;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description:单车接口
 * @author:Lisa
 * @create:2019/08/14
 */
@FeignClient("BICYCLE")
public interface BicycleService {


    /**
     * 根据id查询单车信息
     */
    @GetMapping("/bicycle/bicycleInfo")
    Bicycle queryBicycleById(long id);


    /**
     * 新增故障记录（计费异常）
     */
    @PostMapping("/bicycle/billingexceptions")
    void billingexceptions(@RequestBody Breakdown breakdown);


}
